package com.joinway.framework.admin.core.bean.view;

import java.util.List;

import com.joinway.framework.bean.BaseBean;

public class DataGridRecord extends BaseBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1827004254258508308L;

	int total;
	
	List<?> rows;

//	public DataGridRecord(List<?> rows){
//		this.rows = rows;
//		total = rows == null ? 0 : rows.size();
//	}
	
	public DataGridRecord(List<?> rows, int total){
		this.rows = rows;
		this.total = total;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public List<?> getRows() {
		return rows;
	}

	public void setRows(List<?> rows) {
		this.rows = rows;
	}
}
